import request from "~/config/utils/axios-request"
const prefix = "/webapi/adv"



/**
 * 查询广告
 * @param {*} params 
 */
export const findAdvByPageApi = params => {
  return request({
    url: `${prefix}/findAdvByPage`,
    method: "POST",
    data: params
  })
}



/**
 * 增加广告
 * @param {*} params 
 */
export const saveAdvApi = params => {
  return request({
    url: `${prefix}/saveAdv`,
    method: "POST",
    data: params
  })
}

/**
 * 更新广告
 * @param {*} params 
 */
export const updateAdvApi = params => {
  return request({
    url: `${prefix}/updateAdv`,
    method: "POST",
    data: params
  })
}

/**
 * 查询广告
 * @param {*} params 
 */
export const findAdvByIdApi = params => {
  return request({
    url: `${prefix}/findAdvById`,
    method: "POST",
    data: params
  })
}


/**
 * 删除广告
 * @param {*} params 
 */
export const delAdvApi = params => {
  return request({
    url: `${prefix}/delAdv`,
    method: "POST",
    data: params
  })
}
